<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #box {
      width: 600px;
      height: 400px;
    }
  </style>
</head>

<body>
  <div id="box"></div>
</body>

</html>
<script src="../node_modules/echarts/dist/echarts.min.js"></script>
<script>
  let charts = echarts.init(document.getElementById('box'));
  let option = {
    xAxis: {
      type: 'category',
      boundaryGap: false,
      data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
    },
    yAxis: {
      type: 'value'
    },
    tooltip: {
      trigger: 'item'
    },
    series: [{
        name: "QQQ",
        type: 'line',
        data: [150, 130, 180, '', '', '', '']
      }, {
        name: "QQQ",
        type: 'line',
        data: ['', '', 180, 230, 310, '', ''],
        lineStyle: {
          type: 'dashed'
        }
      },
      // {
      //   name: "QQQ",
      //   type: 'line',
      //   data: ['', '', '', '', 310, 160, ''],
      //   lineStyle: {
      //     color: 'red'
      //   }
      // }, 
      {
        name: "QQQ",
        type: 'line',
        data: ['', '', '', '', 310, 160, '']
      },
      {
        name: "QQQ",
        type: 'line',
        data: ['', '', '', '', '', 160, 230],
        lineStyle: {
          type: 'dashed'
        }
      }
    ]
  }
  charts.setOption(option);
</script>